<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      // const r1 = /[2345abcd]x/g;
      const r1 = /[2-5a-d]x/g;
      const str = `1x 2x 3x 4x 5x ax bx cx`;
      console.log(str.match(r1));
    </script>
  </body>
</html>
